<?php
  require_once("../config/index.php");
  require_once('../controllers/adFlag.php');
  require_once('../controllers/controller.php');
  if(isset($_GET['id'])){
    $id=$_GET['id'];
    $courseSorce=$_GET['courseScore'];
    $weight=$_GET['weight'];
  }else{
    echo "error get";
  }
?>

<!DOCTYPE html>
<html lang="en">
  <head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="<?php echo SERVER_STATICS?>css/bootstrap.min.css" rel="stylesheet">
    <link href="<?php echo SERVER_STATICS?>css/stone.min.css" rel="stylesheet">

  </head>
  <body>
  <div class="container">
    <div class="row clearfix">
      <div class="col-md-12 column">
        <form class="stuLogin" role="form" action="/studentSkill/controllers/controller.php" method="post">
          <input type="hidden" name="action" value="adCourseUpdate">
          <input type="hidden" name="id" value="<?=$id?>">
          <div class="form-group">
            <label for="exampleInputEmail1" >成绩</label>
            <input type="text" class="form-control" name="courseScore" value="<?=$courseSorce?>" />
          </div>
          <div class="form-group">
            <label for="exampleInputPassword1">权重</label>
            <input type="text" class="form-control" name="weight"  value="<?=$weight?>"/>
          </div>
          <button type="submit" class="btn btn-default">确定</button>
        </form>
      </div>
    </div>
  </div>
  </body>
</html>